    <?php
	$cod=$_POST['fcod'];
	$mon=$_POST['fmon'];
	$dia=$_POST['day'];
	$mes=$_POST['month'];
	$yea=$_POST['year'];	
	$numc=$_POST['fnumrec'];
	$con= mysql_connect('localhost','root','');
	mysql_select_db('spa_medico');
	$sql=mysql_query("insert into pagos values('$cod','$mon','$yea-$mes-$dia','$numc')");
	if(mysql_query($sql,$con))
	{
		echo "error";
	}
	else
	{
		echo "Registro de Pago Exitoso";
	}
?>
